<?php
#                                                                                 
# author: Cody Sorgenfrey                                       
# (c)2013 South Hill Calvary Chapel                                               
#                                                                                 
include_once("./root.inc.php");
include_once("${root}/mysql/database_info.php");
include_once("${root}/mysql/common.php");
include_once("${root}/common.php");

$title = "Applications";
$meta_key='apply, questionnaire';
$meta_desc="All of the ministry applications at SHCC";
print_html_head($title ,$meta_key,$meta_desc);
print_java_head(null);
connect_select_test("ministryApps");
begin_body();
page_title($title);
printf("Below is a list of all the ministry questionnaires at South Hill Calvary Chapel.<br><br>\n");
$apps = mysql_query("SELECT * FROM `ministryApps`");
while ($app = mysql_fetch_array($apps)){
	printf("<a href='/application.php?ministry=%s'><h4>%s</h4></a>\n", urlencode($app['ministry']), $app['ministry']);
}
end_page_title();
end_body();
?>